package com.exposit.smarthouse.environment.impl;

import com.exposit.smarthouse.environment.*;
import com.exposit.smarthouse.model.*;
import com.exposit.smarthouse.obj.impl.*;

import java.util.concurrent.*;

public class SmokeEnvironmentImpl extends EnvironmentEntity implements SmokeEnvironment
{
    private ConcurrentMap<String, IState> iStates = new ConcurrentHashMap<String, IState>();

    @Override
    public void addState(IState state)
    {
        iStates.put(state.getType(), state);
    }

    @Override
    public ConcurrentMap<String, IState> getStates() {
        return iStates;
    }
}
